.class Lcom/skyhookwireless/wps/_sdkk;
.super Lcom/skyhookwireless/wps/_sdki;


# static fields
.field private static final z:[Ljava/lang/String;


# instance fields
.field private final _sdkb:Lcom/skyhookwireless/_sdkfb;

.field private final _sdkc:Lcom/skyhookwireless/wps/WPSAuthentication;

.field private final _sdkd:Lcom/skyhookwireless/_sdkr;

.field private final _sdke:Lcom/skyhookwireless/wps/WPSAuthentication;

.field private final _sdkf:Lcom/skyhookwireless/wps/RegistrationCallback;


# direct methods
.method static constructor <clinit>()V
    .locals 14

    const/16 v12, 0x2a

    const/16 v11, 0x23

    const/16 v10, 0x1c

    const/4 v9, 0x1

    const/4 v8, 0x0

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, ",s:FGOr ^\u0003\nd;XB\u000chogb,<?XF\tu7\u0010\u0003"

    invoke-virtual {v1}, Ljava/lang/String;->toCharArray()[C

    move-result-object v1

    array-length v2, v1

    if-gt v2, v9, :cond_5

    move v3, v8

    :cond_0
    move v4, v2

    move v5, v3

    move-object v2, v1

    move v13, v3

    move-object v3, v1

    move v1, v13

    :goto_0
    aget-char v6, v2, v1

    rem-int/lit8 v7, v5, 0x5

    packed-switch v7, :pswitch_data_0

    move v7, v11

    :goto_1
    xor-int/2addr v6, v7

    int-to-char v6, v6

    aput-char v6, v2, v1

    add-int/lit8 v1, v5, 0x1

    if-nez v4, :cond_1

    move-object v2, v3

    move v5, v1

    move v1, v4

    goto :goto_0

    :cond_1
    move v2, v4

    move-object v13, v3

    move v3, v1

    move-object v1, v13

    :goto_2
    if-gt v2, v3, :cond_0

    new-instance v2, Ljava/lang/String;

    invoke-direct {v2, v1}, Ljava/lang/String;-><init>([C)V

    invoke-virtual {v2}, Ljava/lang/String;->intern()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v0, v8

    const-string v1, "=y(CP\u001bn.^J\u0000r\u001d_M\u0001}-FFOz.CO\nxo]J\u001btoO[\u000cy?^J\u0000r"

    invoke-virtual {v1}, Ljava/lang/String;->toCharArray()[C

    move-result-object v1

    array-length v2, v1

    if-gt v2, v9, :cond_4

    move v3, v8

    :cond_2
    move v4, v2

    move v5, v3

    move-object v2, v1

    move v13, v3

    move-object v3, v1

    move v1, v13

    :goto_3
    aget-char v6, v2, v1

    rem-int/lit8 v7, v5, 0x5

    packed-switch v7, :pswitch_data_1

    move v7, v11

    :goto_4
    xor-int/2addr v6, v7

    int-to-char v6, v6

    aput-char v6, v2, v1

    add-int/lit8 v1, v5, 0x1

    if-nez v4, :cond_3

    move-object v2, v3

    move v5, v1

    move v1, v4

    goto :goto_3

    :cond_3
    move v2, v4

    move-object v13, v3

    move v3, v1

    move-object v1, v13

    :goto_5
    if-gt v2, v3, :cond_2

    new-instance v2, Ljava/lang/String;

    invoke-direct {v2, v1}, Ljava/lang/String;-><init>([C)V

    invoke-virtual {v2}, Ljava/lang/String;->intern()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v0, v9

    sput-object v0, Lcom/skyhookwireless/wps/_sdkk;->z:[Ljava/lang/String;

    return-void

    :pswitch_0
    const/16 v7, 0x6f

    goto :goto_1

    :pswitch_1
    move v7, v10

    goto :goto_1

    :pswitch_2
    const/16 v7, 0x4f

    goto :goto_1

    :pswitch_3
    move v7, v12

    goto :goto_1

    :pswitch_4
    const/16 v7, 0x6f

    goto :goto_4

    :pswitch_5
    move v7, v10

    goto :goto_4

    :pswitch_6
    const/16 v7, 0x4f

    goto :goto_4

    :pswitch_7
    move v7, v12

    goto :goto_4

    :cond_4
    move v3, v8

    goto :goto_5

    :cond_5
    move v3, v8

    goto :goto_2

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x0
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method

.method private constructor <init>(Lcom/skyhookwireless/wps/WPSAuthentication;Lcom/skyhookwireless/wps/WPSAuthentication;Lcom/skyhookwireless/_sdkr;Lcom/skyhookwireless/wps/RegistrationCallback;)V
    .locals 1

    invoke-direct {p0}, Lcom/skyhookwireless/wps/_sdki;-><init>()V

    const-class v0, Lcom/skyhookwireless/wps/_sdkk;

    invoke-static {v0}, Lcom/skyhookwireless/_sdkfb;->_sdkb(Ljava/lang/Class;)Lcom/skyhookwireless/_sdkfb;

    move-result-object v0

    iput-object v0, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkb:Lcom/skyhookwireless/_sdkfb;

    iput-object p1, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkc:Lcom/skyhookwireless/wps/WPSAuthentication;

    iput-object p3, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkd:Lcom/skyhookwireless/_sdkr;

    iput-object p2, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdke:Lcom/skyhookwireless/wps/WPSAuthentication;

    iput-object p4, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkf:Lcom/skyhookwireless/wps/RegistrationCallback;

    return-void
.end method

.method constructor <init>(Lcom/skyhookwireless/wps/WPSAuthentication;Lcom/skyhookwireless/wps/WPSAuthentication;Lcom/skyhookwireless/_sdkr;Lcom/skyhookwireless/wps/RegistrationCallback;Lcom/skyhookwireless/wps/_sdkh;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3, p4}, Lcom/skyhookwireless/wps/_sdkk;-><init>(Lcom/skyhookwireless/wps/WPSAuthentication;Lcom/skyhookwireless/wps/WPSAuthentication;Lcom/skyhookwireless/_sdkr;Lcom/skyhookwireless/wps/RegistrationCallback;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    const/4 v0, 0x0

    :try_start_0
    iget-object v1, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkd:Lcom/skyhookwireless/_sdkr;

    invoke-static {v1}, Lcom/skyhookwireless/_sdkvc;->_sdkb(Lcom/skyhookwireless/_sdkr;)Lcom/skyhookwireless/_sdkvc;

    move-result-object v1

    invoke-virtual {v1}, Lcom/skyhookwireless/_sdkvc;->_sdkc()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    const/16 v3, 0x8

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v0

    :goto_0
    :try_start_1
    iget-object v1, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdka:Lcom/skyhookwireless/wps/_sdktb;

    iget-object v2, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkc:Lcom/skyhookwireless/wps/WPSAuthentication;

    iget-object v3, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdke:Lcom/skyhookwireless/wps/WPSAuthentication;

    invoke-virtual {v1, v2, v3, v0}, Lcom/skyhookwireless/wps/_sdktb;->_sdka(Lcom/skyhookwireless/wps/WPSAuthentication;Lcom/skyhookwireless/wps/WPSAuthentication;Ljava/lang/String;)Lcom/skyhookwireless/wps/WPSReturnCode;

    move-result-object v0

    sget-object v1, Lcom/skyhookwireless/wps/WPSReturnCode;->WPS_OK:Lcom/skyhookwireless/wps/WPSReturnCode;

    if-ne v0, v1, :cond_0

    iget-object v1, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkf:Lcom/skyhookwireless/wps/RegistrationCallback;

    invoke-interface {v1}, Lcom/skyhookwireless/wps/RegistrationCallback;->handleSuccess()V

    sget-boolean v1, Lcom/skyhookwireless/wps/Location;->_sdki:Z

    if-eqz v1, :cond_1

    :cond_0
    iget-object v1, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkf:Lcom/skyhookwireless/wps/RegistrationCallback;

    invoke-interface {v1, v0}, Lcom/skyhookwireless/wps/RegistrationCallback;->handleError(Lcom/skyhookwireless/wps/WPSReturnCode;)Lcom/skyhookwireless/wps/WPSContinuation;
    :try_end_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1

    :cond_1
    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkf:Lcom/skyhookwireless/wps/RegistrationCallback;

    invoke-static {v0}, Lcom/skyhookwireless/wps/_sdkf;->_sdka(Lcom/skyhookwireless/wps/_sdkoc;)V

    :goto_1
    return-void

    :catch_0
    move-exception v1

    :try_start_2
    iget-object v2, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkb:Lcom/skyhookwireless/_sdkfb;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v4, Lcom/skyhookwireless/wps/_sdkk;->z:[Ljava/lang/String;

    const/4 v5, 0x0

    aget-object v4, v4, v5

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Ljava/lang/NullPointerException;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Lcom/skyhookwireless/_sdkfb;->_sdke(Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_0

    :catch_1
    move-exception v0

    iget-object v1, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkb:Lcom/skyhookwireless/_sdkfb;

    sget-object v2, Lcom/skyhookwireless/wps/_sdkk;->z:[Ljava/lang/String;

    const/4 v3, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v1, v2, v0}, Lcom/skyhookwireless/_sdkfb;->_sdke(Ljava/lang/String;Ljava/lang/Throwable;)V

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkf:Lcom/skyhookwireless/wps/RegistrationCallback;

    sget-object v1, Lcom/skyhookwireless/wps/WPSReturnCode;->WPS_ERROR:Lcom/skyhookwireless/wps/WPSReturnCode;

    invoke-static {v0, v1}, Lcom/skyhookwireless/wps/_sdkf;->_sdka(Lcom/skyhookwireless/wps/_sdkoc;Lcom/skyhookwireless/wps/WPSReturnCode;)V

    goto :goto_1

    :catch_2
    move-exception v1

    :try_start_3
    iget-object v2, p0, Lcom/skyhookwireless/wps/_sdkk;->_sdkb:Lcom/skyhookwireless/_sdkfb;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v4, Lcom/skyhookwireless/wps/_sdkk;->z:[Ljava/lang/String;

    const/4 v5, 0x0

    aget-object v4, v4, v5

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Ljava/lang/IndexOutOfBoundsException;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Lcom/skyhookwireless/_sdkfb;->_sdke(Ljava/lang/String;)V
    :try_end_3
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_0
.end method
